using System;

namespace Lottery
{
	/// <summary>
	/// Summary description for Combination.
	/// </summary>
	public class Combination
	{
		private int[] values;
		public int this[int idx]
		{
			get{
				if(idx > -1 && idx < 6)
					return values[idx];
				else 
					throw new IndexOutOfRangeException();
			}
			set{
				if(idx > -1 && idx < 6)
					values[idx] = value;
			}
		}
		public Combination()		
		{
			values = new int[6];
		}
		public Combination(int first, int second, int third, int fourth, int fifth, int sixth)
		{
			values = new int[6]{first, second, third, fourth, fifth, sixth};
		}
	}
}
